package ring_buffer

import "context"

type Ring interface {
	Read() (interface{}, error)
	Write(ctx context.Context, v interface{}) error
	IsEmpty() bool
	IsFull() bool
}

type RingBufferCreator func(size int) Ring
